package com.gopay.common.domain.cauth;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 用户角色定义
 * 
 * @CauthOperRoleRel.java
 * @author yaobo
 * @2013-8-5 上午10:18:28 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CAUTH_OPER_ROLE_REL")
public class CAuthOperRoleRel extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = 8987922016112188371L;

    /**
     * 编号
     */
    @Id
    @Column(name = "SQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CAUTH_OPER_ROLE_REL_SEQ")
    @SequenceGenerator(name = "CAUTH_OPER_ROLE_REL_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "CAUTH_OPER_ROLE_REL_SEQ")
    private int id;

    /**
     * 操作员ID
     */
    @Column(name = "OPER_ID")
    private String operId;

    /**
     * 角色ID
     */
    @Column(name = "ROLE_ID")
    private String roleId;

    /**
     * 新增日期
     */
    @Column(name = "CREATED_TS")
    private Date created;

    /**
     * 修改日期
     */
    @Column(name = "LAST_UPD_TS")
    private Date lastUpDate;

    /**
     * 最后修改交易码
     */
    @Column(name = "LAST_UPD_TRANCODE")
    private String lastUpdTranCode;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOperId() {
        return operId;
    }

    public void setOperId(String operId) {
        this.operId = operId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastUpDate() {
        return lastUpDate;
    }

    public void setLastUpDate(Date lastUpDate) {
        this.lastUpDate = lastUpDate;
    }

    public String getLastUpdTranCode() {
        return lastUpdTranCode;
    }

    public void setLastUpdTranCode(String lastUpdTranCode) {
        this.lastUpdTranCode = lastUpdTranCode;
    }
}